package com.velpro.im.config;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.context.annotation.Configuration;
import tk.mybatis.spring.annotation.MapperScan;


@Configuration
public class MybatisConfig {
    /**
     *  No MyBatis mapper was found in '[com.velpro.im]' package. Please check your configuration
     *  使用的tk的开源项目进行mybatis集成
     *  doScan()会扫描启动类同级目录下的mapper接口，但是合理的目录结果绝对不允许所有的mapper都在启动类目录下，
     *  所以在启动类目录下添加了一个伪mapper
     *  再重新启动服务，就不会出现如上warn信息了
     */
    @Mapper
    public interface NoWarnMapper {
    }
}
